export default {
	data() {
		return {
			statusBarHeight: 27,
			token: null,
			needLogin: true,
			hasNewEdition: false,
			pageConfig: {
				pageIndex: 0,
				pageSize: 20,
				bottomEnd: false,
				bottomLoading: false
			},
			userInfo: {},
			masterInfo: null
		}
	},
	methods: {
		/** 打开物料明细 */
		openPopNVue(title, dataList = [], type = null, errorList = []) {
			const subNVue = uni.getSubNVueById('popNVue');
			if (subNVue) {
				subNVue.show('slide-in-right', 200)
				uni.$emit('openNVue', {
					title,
					dataList,
					type,
					errorList
				});
			}
		}
	}
}
